#include<iostream>
#include<thread>
#include<unistd.h>
using namespace std;

void function_thread()
{
    cout<<"I'm a thread"<<endl;
    sleep(2);
}

int main()
{
    thread t(function_thread);
    t.join();

    return 0;
}